Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Lotus Expeditor wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL forums and blogs
  • Home
  • Product Documentation
  • Community Articles
Search
Community Articles > Expeditor Client for Desktop > Sample: Adding an Icon to a Local Portlet
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

Sample: Toolbar and Menu Contributions

Expeditor user interface team best practices on toolbar and menu contributions

Sample: Component Properties

OverviewComponent properties allow developers to create code that at compile time has specific function but accepts flexible input at runtime. For example, a developer can create a component that uses a predefined component property to update the title tab's text within a composite ...

Sample: Multiuser Features

Overview When multiple users share the same workstation, the configuration is referred to as a multiuser installation. This means that a single Expeditor client exists and is shared among all users; however, each user has their own workspace containing configuration details specific to that ...

Sample: Starting Plugins

Overview By default, Eclipse plugins are lazy. Lazy is the technical term (located in the bundle's manifest) that means that plugins are started when a request is either directly made by the Platform to start the plugin or indirectly through class loading. For example, the latter case implies ...

Sample: HTTP Communication

Overview The enhanced HTTP client in Expeditor allows developers to quickly create code that requests data from remote servers over HTTP or HTTPS. The enhanced client wraps the standard Java URLConnectionclasses such that authenticated requests leverage the Accounts framework and HTTPS ...
Community articleSample: Adding an Icon to a Local Portlet
Added by ~Tip Desachekli | Edited by IBM contributor~Lily Minlusteretsi on October 5, 2010 | Version 6
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
Local portlets can be accessed by Expeditor clients. This sample demonstrates a functional portlet and adds an icon to the portlet's title bar.
Tags: portlet, samples
ShowTable of Contents
HideTable of Contents
  • 1 Overview
  • 2 Adding an Icon
    • 2.1 com.ibm.rcp.portletviewer.portlets Extension
    • 2.2 Side Shelf Portlets
  • 3 Sample Details
    • 3.1 com.ibm.rcp.support.portlet.popup
    • 3.2 com.ibm.rcp.support.portlet.popup.portletviewer
    • 3.3 PortletSideShelf.ca
  • 4 Running the Sample

Overview


Lotus Expeditor Client for Desktop users may access locally running portlets. APAR LO53837 allows developers to decorate a portlet's title bar with an icon; this is similar in appearance to Eclipse views used throughout Expeditor.

Adding an Icon


Icons may be added through two methods which have slightly different use cases.

com.ibm.rcp.portletviewer.portlets Extension


When using the com.ibm.rcp.portletviewer.portlets extension point to add a portlet as a view in a perspective, APAR LO5383 adds an icon parameter to the portletData. The result is an icon in the view's title bar.

<extension point="com.ibm.rcp.portletviewer.portlets">      
 <portletData
  contextroot="/PopupPortlet"
  entityId="com.ibm.rcp.support.portlet.popup.portletviewer.PrimaryView"
  portletname="PopupPortlet"
  portletwindowid="default"
  icon="icons/16.gif">
 </portletData>
</extension>




Side Shelf Portlets


Portlets like any other Eclipse view can be added to the side shelf. To display an icon within the side shelf portlet, a preference must be added to the portlet.xml bundled within the plugin.

<portlet-preferences>
 <preference>
  <!-- references the plugin's image file -->
  <name>icon</name>
  <value>icons/16.gif</value>
 </preference>
</portlet-preferences>




Sample Details


Sample code is being moved. This article will be updated when posting is complete.

com.ibm.rcp.support.portlet.popup


Provides the portlet to the Expeditor client. The portlet.xml demonstrated above is contained within this plugin.

com.ibm.rcp.support.portlet.popup.portletviewer


Creates a launch item to view the portlet. The extension point demonstrated above is contained within this plugin.

PortletSideShelf.ca


Provides a composite application that contains the portlet within the side shelf.

Running the Sample


Access the "Sample : Popup Portlet" launch item in the Open menu to demonstrate the com.ibm.rcp.portletviewer.portlets extension. Open the PortletSideShelf.ca using File -> Open -> Composite Application to demonstrate the side shelf portlet.



  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (6)
collapsed Versions (6)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (6)Oct 5, 2010, 3:18:47 PM~Lily Minlusteretsi  IBM contributor
5Oct 5, 2010, 1:01:35 PM~Lily Minlusteretsi  IBM contributor
4Sep 21, 2010, 7:58:00 PM~Lily Minlusteretsi  IBM contributor
3Sep 21, 2010, 7:25:22 PM~Lily Minlusteretsi  IBM contributor
2Sep 21, 2010, 7:16:05 PM~Lily Minlusteretsi  IBM contributor
1Sep 21, 2010, 7:15:07 PM~Tip Desachekli  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software Support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL Software
  • Privacy
  • Accessibility